<?php
if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Profil extends CI_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->library('parser');
	}

	public function index() {
		//untuk meload konten statis
		$this->load->helper('konten_statis');

		//tetapkan meta deskripsi
		$this->parser->set_desc('Website Jamkesda Kabupaten Penajam Paser Utara');

		$this->load->model('m_profil');
		$slug 				= $this->uri->segment('2');
		$data['profil'] 	= $this->m_profil->get_profil($slug);

		// Load the template from the views directory
		$this->parser->theme('front','profil/index', $data);
	}

	public function ppk() {
		//untuk meload konten statis
		$this->load->helper('konten_statis');

		//tetapkan meta deskripsi
		$this->parser->set_desc('Website Jamkesda Kabupaten Penajam Paser Utara');

		$this->load->model('m_profil');
		$data['profil'] 	= $this->m_profil->get_profil_by_id('5');

		// Load the template from the views directory
		$this->parser->theme('front','profil/index', $data);
	}

}
